/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Event.java
 *
 * Created on Jun 6, 2009, 6:56:19 AM
 */

package DigimonAdventure.UserInterface;

import DigimonAdventure.Database.DigimonSpecies;
import DigimonAdventure.DigimonAdventure;
import javax.swing.ImageIcon;
import DigimonAdventure.MP3Player.MusicPlayer;

/**
 *
 * @author Benz Louis
 */
public class Event extends javax.swing.JFrame {
    private int event;
    private int click;
    private MusicPlayer bgm;
    private MusicPlayer bgm2;
    private MusicPlayer ending;

    /** Creates new form Event */
    public Event() {
        initComponents();
        bgm = new MusicPlayer("/DigimonAdventure/Sound/World Map.mp3");
        bgm2 = new MusicPlayer("/DigimonAdventure/Sound/Stage 3.mp3");
        ending = new MusicPlayer("/DigimonAdventure/Sound/Ending.mp3");
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        OuterPanelE = new javax.swing.JLayeredPane();
        CmdNext = new javax.swing.JButton();
        BG = new javax.swing.JLabel();
        Talker = new javax.swing.JLabel();
        Dialogs = new javax.swing.JLabel();
        CharaR = new javax.swing.JLabel();
        CharaL2 = new javax.swing.JLabel();
        CharaL1 = new javax.swing.JLabel();
        CharaL = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Digimon Adventure - Story Mode");
        setAlwaysOnTop(true);
        setBackground(new java.awt.Color(0, 0, 0));
        addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentHidden(java.awt.event.ComponentEvent evt) {
                formComponentHidden(evt);
            }
            public void componentShown(java.awt.event.ComponentEvent evt) {
                formComponentShown(evt);
            }
        });

        OuterPanelE.setBackground(new java.awt.Color(0, 0, 0));

        CmdNext.setFont(new java.awt.Font("Tahoma", 1, 14));
        CmdNext.setText("Next");
        CmdNext.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                CmdNextMouseClicked(evt);
            }
        });
        CmdNext.setBounds(850, 680, 150, 30);
        OuterPanelE.add(CmdNext, javax.swing.JLayeredPane.PALETTE_LAYER);

        BG.setBackground(new java.awt.Color(0, 0, 0));
        BG.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        BG.setIcon(new javax.swing.ImageIcon(getClass().getResource("/DigimonAdventure/Graphics/event.jpg"))); // NOI18N
        BG.setVerticalAlignment(javax.swing.SwingConstants.TOP);
        BG.setBounds(0, 0, 1024, 768);
        OuterPanelE.add(BG, javax.swing.JLayeredPane.DEFAULT_LAYER);

        Talker.setFont(new java.awt.Font("Times New Roman", 0, 36));
        Talker.setForeground(new java.awt.Color(50, 50, 255));
        Talker.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Talker.setText("<Talker>");
        Talker.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        Talker.setOpaque(true);
        Talker.setBounds(30, 550, 400, 50);
        OuterPanelE.add(Talker, javax.swing.JLayeredPane.PALETTE_LAYER);

        Dialogs.setBackground(new java.awt.Color(255, 255, 255));
        Dialogs.setFont(new java.awt.Font("Calibri", 0, 20));
        Dialogs.setText("Isi dialognya");
        Dialogs.setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        Dialogs.setOpaque(true);
        Dialogs.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentShown(java.awt.event.ComponentEvent evt) {
                DialogsComponentShown(evt);
            }
        });
        Dialogs.setBounds(14, 570, 1000, 150);
        OuterPanelE.add(Dialogs, javax.swing.JLayeredPane.PALETTE_LAYER);

        CharaR.setIcon(new javax.swing.ImageIcon(getClass().getResource("/DigimonAdventure/Graphics/PhotoM.gif"))); // NOI18N
        CharaR.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        CharaR.setBounds(770, 270, 250, 300);
        OuterPanelE.add(CharaR, javax.swing.JLayeredPane.PALETTE_LAYER);

        CharaL2.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        CharaL2.setBounds(350, 270, 250, 300);
        OuterPanelE.add(CharaL2, javax.swing.JLayeredPane.PALETTE_LAYER);

        CharaL1.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        CharaL1.setBounds(210, 270, 250, 300);
        OuterPanelE.add(CharaL1, javax.swing.JLayeredPane.PALETTE_LAYER);

        CharaL.setIcon(new javax.swing.ImageIcon(getClass().getResource("/DigimonAdventure/Graphics/digitama.gif"))); // NOI18N
        CharaL.setVerticalAlignment(javax.swing.SwingConstants.BOTTOM);
        CharaL.setBounds(0, 270, 250, 300);
        OuterPanelE.add(CharaL, javax.swing.JLayeredPane.PALETTE_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(OuterPanelE, javax.swing.GroupLayout.DEFAULT_SIZE, 1024, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(OuterPanelE, javax.swing.GroupLayout.DEFAULT_SIZE, 768, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void CmdNextMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_CmdNextMouseClicked
        click ++;
        DialogsComponentShown(evt);
}//GEN-LAST:event_CmdNextMouseClicked

    private void DialogsComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_DialogsComponentShown
        switch(event){
            //Opening, dibuka pas inisialisasi new game selesai
            case 1: switch(click){
                case 0: CharaL.setVisible(false);
                Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Ugh... What WAS that? It sure is a weird dream... Save what world?");
                break;
                case 1: Dialogs.setText("Hmm... Huh..?");
                break;
                case 2: Dialogs.setFont(new java.awt.Font("Calibri",1,40));
                Dialogs.setText("!!!");
                break;
                case 3: Dialogs.setFont(new java.awt.Font("Calibri", 0, 20));
                Dialogs.setText("Where am I?! Wasn't I sleeping in my room just now..?");
                break;
                case 4: Dialogs.setText("EEEEH!!! Even my appearance changed... What happened, really?!");
                break;
                case 5: CharaL.setVisible(true);
                Dialogs.setText("Huh? I didn't notice this egg before... Is it hatching..?");
                break;
                case 6: CharaL.setIcon(DigimonAdventure.pemain.getActiveDigimon().getImageIcon());
                Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("Good morning! My name is "+DigimonAdventure.pemain.getActiveDigimon().getSpecies()+"! Nice to meet you!!");
                break;
                case 7: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("U... Uhm, nice to meet you too. My name is "+DigimonAdventure.pemain.getNama()+"... Wait! It talked!!");
                break;
                case 8: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("What's so weird about it? Ah! I forgot!! Welcome to the Digital World, Chosen Human ^^");
                break;
                case 9: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Digital... World..? Ah!!! So you're a digimon? Cool!");
                break;
                case 10: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("Yep, and I'll be your partner from now on. Yoroshiku ne, "+DigimonAdventure.pemain.getNama()+"-san! ^^");
                break;
                case 11: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Yoroshiku..? (I swear I heard it somewhere before... But where?)");
                break;
                case 12: Dialogs.setText("Well, anyway... Why am I here?");
                break;
                case 13: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("You are summoned to save this world. That's all I can say for now...");
                break;
                case 14: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("What's wrong?");
                break;
                case 15: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("...This world is infected by a virus. Many digimons lose their sanity and begin attacking each other... We..!");
                break;
                case 16: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Okay, okay! I understand! Don't cry... You can count on me!!!");
                break;
                case 17: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("Really...? Yaay!! Well, let's head to the town for now! We'll meet up with the other digimons there!");
                break;
                case 18: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Sounds like a good start for me, let's go!");
                break;
                case 19: this.setVisible(false);
                DigimonAdventure.kotaui.setVisible(true);
                break;
            }break;
            //Dibuka abis ngalahin Boss pertama, sebelom balik ke kota
            case 2: switch(click){
                case 0: Dialogs.setText("Whew, that was a tough one... I never knew digimon could be so brutal...");
                break;
                case 1: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("Well, yeah... Normal digimons won't be a match for them");
                break;
                case 2: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Normal digimons? Does that mean you're not normal, "+DigimonAdventure.pemain.getActiveDigimon().getSpecies()+"?");
                break;
                case 3: Dialogs.setText("Come to think of it... You're colorless, unlike any other digimon I've ever met");
                break;
                case 4: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("Haha, that's mean of you, "+DigimonAdventure.pemain.getNama()+"-chan! You should've noticed earlier");
                break;
                case 5: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setFont(new java.awt.Font("Calibri", 1, 40));
                Dialogs.setText("Don't call me -chan!!!");
                break;
                case 6: Dialogs.setFont(new java.awt.Font("Calibri", 0, 20));
                Dialogs.setText("Well, anyway... So what's your story?");
                break;
                case 7: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("...");
                break;
                case 8: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("It's nothing. I'm a little special, that's all");
                break;
                case 9: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Come oooon..! You're making me curious! What are you hiding from me?");
                break;
                case 10: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("Ah! There's a digitama there! "+DigimonAdventure.pemain.getNama()+", please take care of it! I'm going to secure our way back to the city");
                break;
                case 11: CharaL.setVisible(false);
                Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Hey, don't escape from my questions! Hmm? The digitama is hatching!!");
                break;
                case 12: if(DigimonAdventure.pemain.getDigiSeq() == 1){
                    DigimonAdventure.pemain.addDigimon(DigimonSpecies.Nymphmon);
                }else{
                    DigimonAdventure.pemain.addDigimon(DigimonSpecies.Gnommon);
                }
                CharaL.setIcon(DigimonAdventure.pemain.getListDigimon()[1].getImageIcon());
                CharaL.setVisible(true);
                Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("Fwaah..! Good morning! I'm "+DigimonAdventure.pemain.getListDigimon()[1].getSpecies()+", nice to meet you!");
                break;
                case 13: Dialogs.setText("Thanks for saving me from that evil digimon, "+DigimonAdventure.pemain.getNama()+"-san. I'm indebted to you");
                break;
                case 14: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("(Woah! Another colorless digimon..? And it knows my name?)");
                break;
                case 15: Dialogs.setText("It's OK, Don't mention it! Why are you here, anyway? And how do you know my name?");
                break;
                case 16: Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("One question at a time please... I'm sealed here ever since the virus outbreak begins");
                break;
                case 17: Dialogs.setText("And about how I know your name... We [Monochromatic Digimon]s are connected one another");
                break;
                case 18: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("I see... Oh yeah, what are [Monochromatic Digimon] anyway?");
                break;
                case 19: Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies()+" haven't told you about it yet..?");
                break;
                case 20: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Yep. And I'm very curious about it...");
                break;
                case 21: Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("Then I'll do the same. I'll tell you when the time comes. Let's head back to the city for now...");
                break;
                case 22: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("... They're hiding something");
                break;
                case 23: Talker.setText("System");
                CharaL.setVisible(false);
                CharaR.setVisible(false);
                Dialogs.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies()+" have joined the party!");
                break;
                case 24: CharaR.setVisible(true);
                CharaL.setVisible(true);
                this.setVisible(false);
                DigimonAdventure.kotaui.setVisible(true);
                break;
            }break;
            //Dibuka abis ngalahin boss kedua, sebelum masuk ke kota:
            case 3: switch(click){
                case 0: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Huff... Huff... That's the second one. How many infection sources left are they?");
                break;
                case 1: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("... There's only one left, the main source of the viral infection");
                break;
                case 2: Talker.setText(DigimonAdventure.pemain.getListDigimon()[0].getSpecies().toString());
                Dialogs.setText("The mother virus... Myrrh");
                break;
                case 3: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Well, what are we waiting for then? Let's go!");
                break;
                case 4: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("Wait! There must be another digi-egg nearby. Let's search for it first");
                break;
                case 5: CharaL.setVisible(false);
                Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Digi-egg? In a heavily infected place like this? Wait!");
                break;
                case 6: if(DigimonAdventure.pemain.getDigiSeq() == 3){
                    DigimonAdventure.pemain.addDigimon(DigimonSpecies.Nymphmon);
                }else{
                    DigimonAdventure.pemain.addDigimon(DigimonSpecies.Fayrmon);
                }
                CharaL.setIcon(DigimonAdventure.pemain.getListDigimon()[2].getImageIcon());
                CharaL.setVisible(true);
                Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Huwaa..! Don't appear so suddenly!! So you're the third [Monochromatic Digimon]?");
                break;
                case 7: Talker.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies().toString());
                Dialogs.setText("Yes, I'm the third and the last [Monochromatic Digimon], "+DigimonAdventure.pemain.getListDigimon()[2].getSpecies()+". Nice to meet you, "+DigimonAdventure.pemain.getNama()+"-san");
                break;
                case 8: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Well then "+DigimonAdventure.pemain.getListDigimon()[2].getSpecies()+", can you please tell me what secret you, [Monochromatic Digimon]s are hiding?");
                break;
                case 9: Talker.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies().toString());
                Dialogs.setText("Huh? What are you talking about?");
                break;
                case 10: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("There's something weird about you guys... How could you, a baby digimon survive this place?");
                break;
                case 11: CharaL1.setIcon(DigimonAdventure.pemain.getListDigimon()[1].getImageIcon());
                Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("Wait, "+DigimonAdventure.pemain.getNama()+". This is not the time to...");
                break;
                case 12: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("And even if you try to hide it, I can sense something different about you compared to other digimons");
                break;
                case 13: CharaL2.setIcon(DigimonAdventure.pemain.getListDigimon()[0].getImageIcon());
                Talker.setText(DigimonAdventure.pemain.getListDigimon()[0].getSpecies().toString());
                Dialogs.setText("No, it's...");
                break;
                case 14: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setFont(new java.awt.Font("Calibri", 0, 40));
                Dialogs.setText("TELL ME!!");
                break;
                case 15: Dialogs.setFont(new java.awt.Font("Calibri", 0, 20));
                Dialogs.setText("I'm your partner... Why are you hiding things from me? Am I really that untrustworthy?");
                break;
                case 16: Talker.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies().toString());
                Dialogs.setText("... Understood. I'll tell you everything then...");
                break;
                case 17: bgm.stopMusic();
                new Thread(bgm2,"stage3-music").start();
                Talker.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies().toString());
                Dialogs.setText("We, [Monochromatic Digimon], are not digimon at all");
                break;
                case 18: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setFont(new java.awt.Font("calibri", 1, 48));
                Dialogs.setText("!!!");
                break;
                case 19: Talker.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies().toString());
                Dialogs.setFont(new java.awt.Font("Calibri", 0, 20));
                Dialogs.setText("We are viruses that had been reprogrammed to act like digimon");
                break;
                case 20: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Lies... You must be lying!! I don't believe what you say!!!");
                break;
                case 21: Talker.setText(DigimonAdventure.pemain.getListDigimon()[0].getSpecies().toString());
                Dialogs.setText("It's true... We are virus. But we want to save this world! Just like digimon, we love this world");
                break;
                case 22: Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("But we need someone to keep us intact. Someone to control our power and destructive nature: you...");
                break;
                case 23: Talker.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies().toString());
                Dialogs.setText("We're very sorry to hide it from you, "+DigimonAdventure.pemain.getNama());
                break;
                case 24: Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("We don't want you to hate us, so... We're sorry...");
                break;
                case 25: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("... Is that so...");
                break;
                case 26: Dialogs.setText("So all this time you've been deceiving me?!");
                break;
                case 27: Talker.setText(DigimonAdventure.pemain.getListDigimon()[0].getSpecies().toString());
                Dialogs.setText("No, that's not...");
                break;
                case 28: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setFont(new java.awt.Font("Calibri", 1, 40));
                Dialogs.setText("YOU'RE JUST USING ME!!!");
                break;
                case 29: Talker.setText("");
                Dialogs.setText("*Slap*");
                break;
                case 30: Talker.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies().toString());
                Dialogs.setFont(new java.awt.Font("Calibri", 0, 20));
                Dialogs.setText("Calm down! Just like you, we also want to save this world from destruction!");
                break;
                case 31: Dialogs.setText("You're tired... Let's go back to the city now");
                break;
                case 32: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("... Yeah, you're right... I'm sorry. I lost myself just now");
                break;
                case 33: Dialogs.setText("Let's go back");
                break;
                case 34: CharaL.setVisible(false);
                CharaL1.setVisible(false);
                CharaL2.setVisible(false);
                CharaR.setVisible(false);
                Talker.setText("System");
                Dialogs.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies()+" has joined the party!");
                break;
                case 35: CharaL.setVisible(true);
                CharaL1.setVisible(true);
                CharaL2.setVisible(true);
                CharaR.setVisible(true);
                this.setVisible(false);
                DigimonAdventure.petadunia.setVisible(true);
                break;
            }break;
            //Dibuka waktu masuk ke city dari world map diatas:
            case 4: switch (click){
                case 0: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("... Tell me everything about you, the viruses, and Myrrh");
                break;
                case 1: Talker.setText(DigimonAdventure.pemain.getListDigimon()[0].getSpecies().toString());
                Dialogs.setText("Long time ago, a virus outbreak occurs at digital world...");
                break;
                case 2: Dialogs.setText("Many digimons are killed, or turned evil by the virus and start attacking other digimons");
                break;
                case 3: Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("And thus the war to stop the virus began. Many digimons participate in it...");
                break;
                case 4: Talker.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies().toString());
                Dialogs.setText("It was a bloody war... Almost all the digimons were wiped out");
                break;
                case 5: Dialogs.setText("When all hopes seems to have faded, a miracle occured...");
                break;
                case 6: Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("A mysterious 'creature' descended from the Tower of Life and helped the digimons in their war");
                break;
                case 7: Dialogs.setText("With the help of that 'creature', the digital world was saved");
                break;
                case 8: Talker.setText(DigimonAdventure.pemain.getListDigimon()[0].getSpecies().toString());
                Dialogs.setText("That 'creature' is Myrrh");
                break;
                case 9: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("huh? What do you mean by 'creature'? Was she not a digimon?");
                break;
                case 10: Talker.setText(DigimonAdventure.pemain.getListDigimon()[0].getSpecies().toString());
                Dialogs.setText("No, she's not a digimon. Most likely... She's a human, just like you, "+DigimonAdventure.pemain.getNama());
                break;
                case 11: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Huh? There was a human that comes here before me?");
                break;
                case 12: Dialogs.setText("Wait a minute! How come a human is called a creature?! That's rude, you know!!");
                break;
                case 13: Talker.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies().toString());
                Dialogs.setText("She might not be a human, who knows? All we know is that her form resembles human a lot");
                break;
                case 14: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("?? I don't get it... Doesn't that makes her a human?");
                break;
                case 15: Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("Can a human fuse with digimons to fight?");
                break;
                case 16: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Uh... No..?");
                break;
                case 17: Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("That's exactly why we don't know what she is...");
                break;
                case 18: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Okay... Please continue");
                break;
                case 19: Talker.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies().toString());
                Dialogs.setText("For a while, she was considered as a savior, and even considered as a guardian deity");
                break;
                case 20: Dialogs.setText("But in their hearts, the digimons are scared of her strength and ability");
                break;
                case 21: Dialogs.setText("Some even began spreading rumor: 'Maybe she was part of the virus. That's why she's unharmed by it'");
                break;
                case 22: Dialogs.setText("As their fear grows, the digimons began to stay away from Myrrh");
                break;
                case 23: Dialogs.setText("They 'throned' her in the secluded Tower of Life, only to keep Myrrh away from them");
                break;
                case 24: Dialogs.setText("Eventually, the tower was locked down. Myrrh was completely abandoned by the others");
                break;
                case 25: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Ugh... That's just... Sad...");
                break;
                case 26: Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("It was. Myrrh was very lonely at that time");
                break;
                case 27: Dialogs.setText("To relish her loneliness, she created us, [Monochromatic Digimon], using part of her data");
                break;
                case 28: Dialogs.setText("We are artificial creature made to represent digimon");
                break;
                case 29: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("So you're Myrrh's children? Then why do you refer yourselves as virus?");
                break;
                case 30: Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("Because we are incomplete beings. We brought instability to the Digital World, and thus we are virus by nature");
                break;
                case 31: Dialogs.setText("Anyway... We were not enough. Myrrh wanted to be free; wanted to be accepted by the others; wanted real friends");
                break;
                case 32: Dialogs.setText("One day, she can't take the loneliness anymore and broke out of the Tower of Life");
                break;
                case 33: Dialogs.setText("The digimons consider that as an assault and begin a war against her");
                break;
                case 34: Dialogs.setText("Afraid that she'll hurt the digimons, Myrrh didn't fight back and took all their attacks");
                break;
                case 35: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("!!");
                break;
                case 36: Dialogs.setText("I can't believe that the digimons did that in the past...");
                break;
                case 37: Talker.setText(DigimonAdventure.pemain.getListDigimon()[0].getSpecies().toString());
                Dialogs.setText("You can't really blame them either. They were on the verge of extinction back then");
                break;
                case 38: Dialogs.setText("It's just natural to be paranoid. And there were rumor about her being a virus among them as well");
                break;
                case 39: Dialogs.setText("After that incident, the dying Myrrh were sent back into the Tower of Life by the digimons");
                break;
                case 40: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("She was... Locked in again? Without a proper treatment?");
                break;
                case 41: Talker.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies().toString());
                Dialogs.setText("... Yes. She was devastated by what the digimons did to her");
                break;
                case 42: Dialogs.setText("She was very sad... And angry. Probably it was then the virus posessed her");
                break;
                case 43: Dialogs.setText("She began to hate the digimons. The virus is slowly taking her over");
                break;
                case 44: Dialogs.setText("...And the situation become like what you see right now. She's made her move to destroy the world");
                break;
                case 45: Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                Dialogs.setText("Wait... Look outside, everyone!");
                break;
                case 46: BG.setIcon(createImageIcon("/DigimonAdventure/Graphics/CityEvent.jpg","Gambar-City"));
                Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setFont(new java.awt.Font("Calibri", 1, 40));
                Dialogs.setText("!!!");
                break;
                case 47: Dialogs.setFont(new java.awt.Font("Calibri", 0, 20));
                Dialogs.setText("The city... It's starting to crumble! What happened?");
                break;
                case 48: Talker.setText(DigimonAdventure.pemain.getListDigimon()[0].getSpecies().toString());
                Dialogs.setText("It's Myrrh's Ghias... We must stop her as soon as possible! Let's go, "+DigimonAdventure.pemain.getNama()+"-san!!");
                break;
                case 49: DigimonAdventure.pemain.getListDigimon()[0].addLife(DigimonAdventure.pemain.getListDigimon()[0].getHP());
                DigimonAdventure.pemain.getListDigimon()[1].addLife(DigimonAdventure.pemain.getListDigimon()[1].getHP());
                DigimonAdventure.pemain.getListDigimon()[2].addLife(DigimonAdventure.pemain.getListDigimon()[2].getHP());
                this.setVisible(false);
                DigimonAdventure.kotaui.setVisible(true);
                break;
            }break;
            //dibuka waktu mau masuk final stage:
            case 5: switch(click){
                case 0: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Hey... If we defeated Myrrh... What will happen to you guys?");
                break;
                case 1: CharaL.setIcon(DigimonAdventure.pemain.getActiveDigimon().getImageIcon());
                CharaL.setVisible(true);
                Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("... I don't know, probably we'll vanish together with her");
                break;
                case 2: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("... Well, I guess you're right... You're her children in the first place, is it?");
                break;
                case 3: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("Yes, but let's not talk about this right now. We must focus in saving the world");
                break;
                case 4: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("... Isn't there any other way to save the world..?");
                break;
                case 5: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("...");
                break;
                case 6: Dialogs.setText("There probably is, but we don't have time to think of it right now. This world might perish anytime now");
                break;
                case 7: Dialogs.setText("... There she is, Myrrh...");
                break;
                case 8: CharaL.setVisible(false);
                Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Huh? Where?");
                break;
                case 9: CharaL.setIcon(createImageIcon("/DigimonAdventure/Graphics/PhotoE.gif", "Mir"));
                CharaL.setVisible(true);
                Talker.setText("Myrrh");
                Dialogs.setText("...");
                break;
                case 10: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("Whoa! Is that you... Myrrh?");
                break;
                case 11: Talker.setText("Myrrh");
                Dialogs.setText(DigimonAdventure.pemain.getNama()+"... Is it? What do you want?");
                break;
                case 12: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("How'd you know my... Ah, I forgot. From your children, right?");
                break;
                case 13: Dialogs.setText("Myrrh, please stop what you're doing! You're making everybody suffer!!");
                break;
                case 14: Talker.setText("Myrrh");
                Dialogs.setText("...");
                break;
                case 15: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("MYRRH! Don't you love this world? Don't you love digimons?!");
                break;
                case 16: Talker.setText("Myrrh");
                Dialogs.setText("I... Ugh...!");
                break;
                case 17: Dialogs.setFont(new java.awt.Font("Calibri", 1, 40));
                Dialogs.setText("AHHH!!!");
                CharaL.setVisible(false);
                break;
                case 18: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setFont(new java.awt.Font("Calibri", 0, 20));
                Dialogs.setText("Myrrh! What happened? Where'd she go?");
                break;
                case 19: CharaL.setIcon(createImageIcon("/DigimonAdventure/Graphics/Mir1.gif", "Mir-robo"));
                CharaL.setVisible(true);
                Talker.setText("Dark Mirudramon");
                Dialogs.setText("What's wrong... With making those digimons... Suffer..?");
                break;
                case 20: Dialogs.setText("All this time... They've made me suffer...");
                break;
                case 22: Dialogs.setText("TELL ME WHAT'S WRONG WITH TAKING REVENGE?!");
                break;
                case 23: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("You..! So you're going to destroy the world you saved just for revenge?!");
                break;
                case 24: Dialogs.setFont(new java.awt.Font("Calibri", 0, 40));
                Talker.setText("Dark Mirudramon");
                Dialogs.setText("IS THAT WRONG?!");
                break;
                case 25: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("You make so many suffers just for a petty revenge?!");
                break;
                case 26: CharaL1.setIcon(DigimonAdventure.pemain.getActiveDigimon().getImageIcon());
                CharaL1.setVisible(true);
                Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setFont(new java.awt.Font("Calibri", 0, 20));
                Dialogs.setText("Calm down, "+DigimonAdventure.pemain.getNama()+"! You can't fight her head on!");
                break;
                case 27: Talker.setText("Dark Mirudramon");
                Dialogs.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies()+"... Are you going to abandon me as well? Just like those digimons..?");
                break;
                case 28: Dialogs.setText("Then... DIE!");
                break;
                case 29: Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                Dialogs.setText("Agh...!");
                DigimonAdventure.pemain.getActiveDigimon().decLive(DigimonAdventure.pemain.getActiveDigimon().getLife()-1);
                break;
                case 30: CharaL1.setVisible(false);
                Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies()+"!!!");
                break;
                case 31: Dialogs.setText("You..! "+DigimonAdventure.pemain.getActiveDigimon().getSpecies()+" just wanted to save the world, don't you get it?");
                break;
                case 32: Dialogs.setText("Remember your past! Don't you want to save the world to?!");
                break;
                case 33: Dialogs.setText("Isn't that why you fought the virus together with the digimons, Myrrh?!");
                break;
                case 34: Talker.setText("Myrrh");
                Dialogs.setText("I... Shouldn't have helped... Those devils... In the first place");
                break;
                case 35: Dialogs.setText("Then... I wouldn't have to suffer... Like this...");
                break;
                case 36: Dialogs.setText("They... Should just perish together with this rotten world!");
                break;
                case 37: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("... Is that your true feeling, Myrrh? Do you hate digimons that much?");
                break;
                case 38: Dialogs.setText("Then why didn't you obliterate them when you broke out of this tower before?");
                break;
                case 39: Dialogs.setText("Why did you take their blows without fighting back?");
                break;
                case 40: Talker.setText("Dark Mirudramon");
                Dialogs.setText("Stop... It..!");
                break;
                case 41: Dialogs.setText("Don't remind me... Of that day... Of that suffering!");
                break;
                case 42: Dialogs.setFont(new java.awt.Font("Calibri", 1, 40));
                Dialogs.setText("AHHH!!!");
                break;
                case 43: CharaL1.setIcon(createImageIcon("/DigimonAdventure/Graphics/PhotoE.gif", "Mir"));
                CharaL1.setVisible(true);
                Talker.setText("Myrrh");
                Dialogs.setFont(new java.awt.Font("Calibri", 0, 20));
                Dialogs.setText("Human, fall back for now and treat "+DigimonAdventure.pemain.getActiveDigimon().getSpecies()+" wounds first for now");
                break;
                case 44: Dialogs.setText("Thanks to you, the influence of the virus over me is weakened");
                break;
                case 45: Dialogs.setText("I'll stay here, come back and defeat my body after you're ready");
                break;
                case 46: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("... Understood. Just wait for me, Myrrh!");
                break;
                case 47: CharaR.setVisible(false);
                Talker.setText("Myrrh");
                Dialogs.setText("Please... Save this world!");
                break;
                case 48: Dialogs.setText("Ahh...!");
                break;
                case 49: CharaL1.setVisible(false);
                Talker.setText("Dark Mirudramon");
                Dialogs.setText("Damn you... Myrrh! How could you still have some control over... Me?!");
                break;
                case 50: this.setVisible(false);
                DigimonAdventure.petadunia.setVisible(true);
            }break;
            //Ending scene, abis ngalahin final boss
            case 6: switch(click){
                case 0: Dialogs.setFont(new java.awt.Font("Calibri", 1, 40));
                Dialogs.setText("AAAAAAAHH!!!");
                break;
                case 1: Dialogs.setFont(new java.awt.Font("Calibri", 0, 20));
                Dialogs.setText("How can I lose... To someone like you..?!");
                break;
                case 2: Dialogs.setText("I'm the legendary creature, Myrrh! How can I lose to the likes of YOU?!");
                break;
                case 3: Talker.setText(DigimonAdventure.pemain.getNama());
                Dialogs.setText("No, you're not! You're just a virus controlling her!");
                break;
                case 4: Dialogs.setText("You won't win from me... 'cause I'm not fighting alone!");
                break;
                case 5: Dialogs.setText("The townsfolk... My partners... And Myrrh herself helped my to defeat you!");
                break;
                case 6: Talker.setText("Dark Mirudramon");
                    Dialogs.setText("NONSENSE!!! I can't lose! I... I don't want to die!!");
                break;
                case 7: Dialogs.setText("I still need to consume this world! I cannot die here!!");
                break;
                case 8: CharaL1.setIcon(createImageIcon("/DigimonAdventure/Graphics.PhotoE.gif", "Mir"));
                    CharaL1.setVisible(true);
                    Talker.setText("Myrrh");
                    Dialogs.setText("Begone, evil virus! I won't let you destroy this world!");
                break;
                case 9: Talker.setText("Dark Mirudramon");
                    Dialogs.setText("AAAAAAAHH!!!");
                break;
                case 10: CharaL.setIcon(createImageIcon("/DigimonAdventure/Graphics/PhotoE.gif", "Mir"));
                    CharaL2.setVisible(false);
                    Talker.setText(DigimonAdventure.pemain.getNama());
                    Dialogs.setText("Myrrh! So you're able to get back to your former self?");
                break;
                case 11: Talker.setText("Myrrh");
                    Dialogs.setText("Yes. Thanks to you, the virus control over me is weakened considerably, and I could regain control over myself");
                break;
                case 12: Talker.setText(DigimonAdventure.pemain.getNama());
                    Dialogs.setText("Allright! So now the digital world is saved, is it not?");
                break;
                case 13:BG.setIcon(createImageIcon("/DigimonAdventure/Graphics/WorldEvent.jpg", "Dunia rusak"));
                    CharaL1.setIcon(DigimonAdventure.pemain.getListDigimon()[0].getImageIcon());
                    CharaL1.setVisible(true);
                    Talker.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies().toString());
                    Dialogs.setText("Not so fast... The world is already crumbling, just stopping the virus is not enough");
                break;
                case 14: Talker.setText("Myrrh");
                    Dialogs.setText(DigimonAdventure.pemain.getActiveDigimon().getSpecies()+" is right. I'll start the restoration of the Digital World now");
                break;
                case 15: bgm2.stopMusic();
                    new Thread(ending,"ending-song").start();
                    Talker.setText(DigimonAdventure.pemain.getNama());
                    Dialogs.setText("... A song? Will this really save the Digital World?");
                break;
                case 16: Talker.setText("Myrrh");
                    Dialogs.setText("Just wait and listen. I can do many things with my song");
                break;
                case 17: Dialogs.setText("This song... [Re-Creation] could revive even the dying world. It's a healing song");
                break;
                case 18: Talker.setText(DigimonAdventure.pemain.getNama());
                    Dialogs.setText("It feels so... Soothing...");
                break;
                case 19: CharaL2.setIcon(DigimonAdventure.pemain.getListDigimon()[2].getImageIcon());
                    CharaL2.setVisible(true);
                    Talker.setText(DigimonAdventure.pemain.getListDigimon()[2].getSpecies().toString());
                    Dialogs.setText("Look! The world..!");
                break;
                case 20:BG.setIcon(createImageIcon("/DigimonAdventure/Graphics/event.jpg", "Dunia normal"));
                    CharaL1.setIcon(DigimonAdventure.pemain.getListDigimon()[1].getImageIcon());
                    Talker.setText(DigimonAdventure.pemain.getListDigimon()[1].getSpecies().toString());
                    Dialogs.setText("It's... Recovering");
                break;
                case 21: Talker.setText(DigimonAdventure.pemain.getNama());
                    Dialogs.setText("Yeah... It's the dawn of the new era of Digital World");
                break;
                case 22: Talker.setText("Myrrh");
                    Dialogs.setText("Yes, and this time... I'll try my best to befriend all digimon! ^^");
                break;
                case 23: CharaL.setIcon(DigimonAdventure.pemain.getListDigimon()[0].getImageIcon());
                Talker.setText("All");
                    Dialogs.setText("We know you will be able to do so this time! And remember, we are always here for you!");
                break;
                case 24: CharaL.setVisible(false);
                    CharaL1.setVisible(false);
                    CharaL2.setVisible(false);
                    CharaR.setVisible(false);
                    BG.setIcon(null);
                    Talker.setText("System");
                    Dialogs.setText("And thus, is the ending of "+DigimonAdventure.pemain.getNama()+"'s adventure in the Digital World");
                break;
                case 25: Dialogs.setText("After the restoration of the Digital World is completed, he return to his own world");
                break;
                case 26: Dialogs.setText("Occasionally, he would return to the Digital World to visit his partners and his friend, Myrrh");
                break;
                case 27: Dialogs.setText("The three Monochromatic Digimons and Myrrh continue to live inside the Tower of Life");
                break;
                case 28: Dialogs.setText("But this time, they're free to come to the city and live together harmonically with other digimons");
                break;
                case 29: Dialogs.setText("The remaining virus were wiped out completely");
                break;
                case 30: BG.setIcon(createImageIcon("/DigimonAdventure/Graphics/kandidat shop (temp).jpg", "shop"));
                Dialogs.setText("Nicomon's item shop becomes the biggest store in Digital World");
                break;
                case 31: BG.setIcon(createImageIcon("/DigimonAdventure/Graphics/Inn.jpg", "inn"));
                Dialogs.setText("Eoriamon continues to tend to her inn, and eventually it earns the reputation as the best Inn in DigiWorld");
                break;
                case 32: BG.setIcon(createImageIcon("/DigimonAdventure/Graphics/fs2.jpg", "inn"));
                Dialogs.setText("Nekomimon continues to live happily with her friends. She often visits Myrrh at the Tower of Life");
                break;
                case 33: BG.setIcon(null);
                Dialogs.setHorizontalAlignment((int) CENTER_ALIGNMENT);
                Dialogs.setFont(new java.awt.Font("Calibri", 1, 40));
                Dialogs.setText("The End");
                break;
                case 34: Dialogs.setText("Thank You for Playing!!!");
                break;
                case 35: Dialogs.setText("Created by Team Kyubi");
                break;
                case 36: Dialogs.setText("Main Coding by Kris Derril Siregar");
                break;
                case 37: Dialogs.setText("User Interface by Benz Louis Alam");
                break;
                case 38: Dialogs.setText("Special thanx to Darryl");
                break;
                case 39: Dialogs.setText("HMC Crew");
                break;
                case 40: Dialogs.setText("And...");
                break;
                case 41: Dialogs.setText("YOU!");
                break;
                case 42: Dialogs.setText("Now... Let's enjoy the music ^^");
                break;
                case 43: Dialogs.setFont(new java.awt.Font("Calibri", 0, 20));
                        Dialogs.setText("Congratulations for completing the game!");
                break;
                case 44: Dialogs.setText("Here's a secret for you...");
                break;
                case 45: Dialogs.setText("Type 'Myrrh Weisswritter von Artonellic Lune' to play as Myrrh!");
                break;
                case 46: Dialogs.setFont(new java.awt.Font("Calibri", 0, 10));
                        Dialogs.setText("But it's still under construction =p");
                        CmdNext.setText("Return to Menu");
                break;
                case 47: ending.stopMusic();
                        DigimonAdventure.pemain.remAllDigimon();
                        this.setVisible(false);
                        DigimonAdventure.menuutama.setVisible(true);
                break;
            }break;
        }
}//GEN-LAST:event_DialogsComponentShown

    private void formComponentShown(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_formComponentShown
        event ++;
        if (event < 4){
            new Thread(bgm,"world-map-music").start();
        }else{
            new Thread(bgm2,"stage3-music").start();
        }
        click = 0;
        //Masih ngaco, entah kenapa GenderCodenya selalu dianggap 0
        if(DigimonAdventure.pemain.getGenderCode() == 1){
            CharaR.setIcon(createImageIcon("/DigimonAdventure/Graphics/PhotoM.gif","Player-M"));
        }else{
            CharaR.setIcon(createImageIcon("/DigimonAdventure/Graphics/PhotoF.gif","Player-F"));
        }
        switch(event){
            case 1: CharaL.setIcon(createImageIcon("/DigimonAdventure/Graphics/digitama.gif","telur"));
            break;
            case 2: CharaL.setIcon(DigimonAdventure.pemain.getActiveDigimon().getImageIcon());
            break;
            case 3: CharaL.setIcon(DigimonAdventure.pemain.getActiveDigimon().getImageIcon());
            break;
            case 4: BG.setIcon(createImageIcon("/DigimonAdventure/Graphics/InnEvent.jpg","Gambar-Inn"));
                    CharaL.setIcon(DigimonAdventure.pemain.getListDigimon()[0].getImageIcon());
                    CharaL1.setIcon(DigimonAdventure.pemain.getListDigimon()[1].getImageIcon());
                    CharaL2.setIcon(DigimonAdventure.pemain.getListDigimon()[2].getImageIcon());
            break;
            case 5: BG.setIcon(createImageIcon("/DigimonAdventure/Graphics/Arena3.jpg","Arena3"));
                    CharaL.setVisible(false);
                    CharaL1.setVisible(false);
                    CharaL2.setVisible(false);
            break;
            case 6: CharaR.setVisible(true);
                    CharaL1.setVisible(false);
                    CharaL2.setVisible(false);
            break;
        }
        DialogsComponentShown(evt);
    }//GEN-LAST:event_formComponentShown

    private void formComponentHidden(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_formComponentHidden
        if (event < 3){
            bgm.stopMusic();
        } else{
            bgm2.stopMusic();
        }
    }//GEN-LAST:event_formComponentHidden

    public int getEvent(){return event;}

    protected ImageIcon createImageIcon(String path, String description) {
	java.net.URL imgURL = getClass().getResource(path);
	if (imgURL != null) {
		return new ImageIcon(imgURL, description);
	} else {
		System.err.println("Couldn't find file: " + path);
		return null;
	}
}

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Event().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel BG;
    private javax.swing.JLabel CharaL;
    private javax.swing.JLabel CharaL1;
    private javax.swing.JLabel CharaL2;
    private javax.swing.JLabel CharaR;
    private javax.swing.JButton CmdNext;
    private javax.swing.JLabel Dialogs;
    private javax.swing.JLayeredPane OuterPanelE;
    private javax.swing.JLabel Talker;
    // End of variables declaration//GEN-END:variables

}
